package ru.aptu.gsp_banking.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 12/21/11
 * Time: 2:42 PM
 */

@Entity
@Table(name = "currencies")
public class Currency {
    /*
    id char(3) not null primary key,
    exchange_rate float not null );
     */

    @Id
    @Column(name = "id")
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Float getExchangeRate() {
        return exchangeRate;
    }

    public void setExchangeRate(Float exchangeRate) {
        this.exchangeRate = exchangeRate;
    }

    @Column(name = "exchange_rate")
    private Float exchangeRate;
}
